/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.dao;

import java.util.List;
import thienphuc.patient.dto.PhongBan;

/**
 *
 * @author QuocDat
 */
public interface PhongBanDAO extends Dao<PhongBan, Integer> {
    public final static String PHONG_BAN_MA_PHONG = "maPhong";
    public final static String PHONG_BAN_TEN_PHONG = "tenPhong";
    public final static String PHONG_BAN_MO_TA = "moTa";
    public final static String PHONG_BAN_TRANG_THAI = "trangThai";
    public final static String PHONG_BAN_QUYENS = "quyens";
    
    /**
     * Find Find PhongBan by TenPhong
     * @param tenPhong 
     * @return 
     */
    List<PhongBan> findByTenPhongBan(String tenPhong) throws Exception;
    
    /**
     * Find PhongBan by TrangThai
     * @param trangThai
     * @return 
     */
    List<PhongBan> findByTrangThai(boolean trangThai) throws Exception;
}
